package pojo.diy;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;
@Aspect
@Component
public class DiyP {
    @Before("execution(* pojo.log.UserServiceImpl.*(..))")
    public void before(){
        System.out.println("dsvm");

    }
    @After("execution(* pojo.log.UserServiceImpl.*(..))")
    public void after(){
        System.out.println("dsvnvkm");


    }
    @Around("execution(* pojo.log.UserServiceImpl.*(..))")
    public void arround(ProceedingJoinPoint jp) throws Throwable{
        System.out.println("hq");
        Object p = jp.proceed();
        System.out.println("mq");
    }
}
